#!/bin/bash
for i in {1..20}
do
  curl -s -X POST http://127.0.0.1:8000/run-shell \
  -H "Content-Type: application/json" \
  -d "{\"user_id\":\"u1\",\"usap_id\":\"usap1\",\"shell_content\":\"mysql -uroot -pAbc@1234 -Dtestdb -e 'insert into test values($i,\\\"name$i\\\");'\"}" &
done
wait
echo "并发插入任务完成"
